/**
 * MemberCouponsMapperExt
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2017-12-29  Created
 */
package com.lzy.product.dao;

import com.lzy.product.dtos.MemberCouponsDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;

@Resource
public interface MemberCouponsMapperExt extends MemberCouponsMapper {

    /**
     * 通过会员ID查询卡券宝详情
     *
     * @param memberId
     * @return
     */
    MemberCouponsDto findByMemberId(@Param("memberId") Long memberId);

    /**
     * 通过会员ID和类型查询卡券宝详情
     *
     * @param memberId
     * @return
     */
    MemberCouponsDto findByMemberIdAndType(@Param("memberId") Long memberId, @Param("type") Integer type);
}